package com.aaa.dao;

import com.aaa.entity.Book;
import com.aaa.entity.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BookDao {
    List<Map> findBook(@Param("dynName") String dynName, @Param("docName")String docName,
                         @Param("grand")String grand,@Param("bookName") String bookName,
                         @Param("introduce")String introduce, @Param("memo")String memo);
    Map findBookById(int bookId);
    int updateBook(Book book);
    int bookAdd(Book book);
    List<Map> findBookDesc();
    int bookDel(int bookId);
    List<Map> checkBook(String bookName);
    List<Map> findBookRepeat();
}
